package cn.studyjava.verify.model.vo;

import java.util.Date;

/**
 * <p>
 * Description:
 * </p>
 * 
 * @author: zsljava
 * @version 1.0.0
 * <p>
 * History:
 * -----------------------------------------------
 * @Date: 2017年10月18日 下午2:31:06
 * @author: zsljava
 * @version 1.0.0
 * @OP: Create
 * -----------------------------------------------
 * </p>
 *
 * @since
 * @see
 */
public class AuthVO {

	private String authId;

	private Date authStartTime;

	private Date authStopTime;

	private Integer authTime;

	private Integer status;
	
	private String reasonCode;

	private String ip;

	/**
	 * @return the authId
	 */
	public String getAuthId() {
		return authId;
	}

	/**
	 * @param authId the authId to set
	 */
	public void setAuthId(String authId) {
		this.authId = authId;
	}

	public Date getAuthStartTime() {
		return authStartTime;
	}

	public void setAuthStartTime(Date authStartTime) {
		this.authStartTime = authStartTime;
	}

	public Date getAuthStopTime() {
		return authStopTime;
	}

	public void setAuthStopTime(Date authStopTime) {
		this.authStopTime = authStopTime;
	}

	public Integer getAuthTime() {
		return authTime;
	}

	public void setAuthTime(Integer authTime) {
		this.authTime = authTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public String getReasonCode() {
		return reasonCode;
	}

	public void setReasonCode(String reasonCode) {
		this.reasonCode = reasonCode;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * @Title: hashCode
	 * @return
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((authId == null) ? 0 : authId.hashCode());
		result = prime * result + ((authStartTime == null) ? 0 : authStartTime.hashCode());
		result = prime * result + ((authStopTime == null) ? 0 : authStopTime.hashCode());
		result = prime * result + ((authTime == null) ? 0 : authTime.hashCode());
		result = prime * result + ((ip == null) ? 0 : ip.hashCode());
		result = prime * result + ((reasonCode == null) ? 0 : reasonCode.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		return result;
	}

	/**
	 * @Title: equals
	 * @param obj
	 * @return
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		AuthVO other = (AuthVO) obj;
		if (authId == null) {
			if (other.authId != null) {
				return false;
			}
		} else if (!authId.equals(other.authId)) {
			return false;
		}
		if (authStartTime == null) {
			if (other.authStartTime != null) {
				return false;
			}
		} else if (!authStartTime.equals(other.authStartTime)) {
			return false;
		}
		if (authStopTime == null) {
			if (other.authStopTime != null) {
				return false;
			}
		} else if (!authStopTime.equals(other.authStopTime)) {
			return false;
		}
		if (authTime == null) {
			if (other.authTime != null) {
				return false;
			}
		} else if (!authTime.equals(other.authTime)) {
			return false;
		}
		if (ip == null) {
			if (other.ip != null) {
				return false;
			}
		} else if (!ip.equals(other.ip)) {
			return false;
		}
		if (reasonCode == null) {
			if (other.reasonCode != null) {
				return false;
			}
		} else if (!reasonCode.equals(other.reasonCode)) {
			return false;
		}
		if (status == null) {
			if (other.status != null) {
				return false;
			}
		} else if (!status.equals(other.status)) {
			return false;
		}
		return true;
	}

	/**
	 * @Title: toString
	 * @return
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "AuthVO [authId=" + authId + ", authStartTime=" + authStartTime + ", authStopTime=" + authStopTime
				+ ", authTime=" + authTime + ", status=" + status + ", reasonCode=" + reasonCode + ", ip=" + ip + "]";
	}
	
}
